Current File : /var/www/vinorea/var/cache/dev/twig/b5/b5643028f7eb74c483f1b4e3e5af0d9b.php |
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @PrestaShop/Admin/Improve/International/Currency/Blocks/exchange_rates.html.twig */
class __TwigTemplate_8d9e1edef52f96db076df353f7d48921 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'currency_settings' => [$this, 'block_currency_settings'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PrestaShop/Admin/Improve/International/Currency/Blocks/exchange_rates.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PrestaShop/Admin/Improve/International/Currency/Blocks/exchange_rates.html.twig"));
// line 25
echo "
";
// line 26
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["exchangeRatesForm"]) || array_key_exists("exchangeRatesForm", $context) ? $context["exchangeRatesForm"] : (function () { throw new RuntimeError('Variable "exchangeRatesForm" does not exist.', 26, $this->source); })()), [0 => "@PrestaShop/Admin/TwigTemplateForm/prestashop_ui_kit.html.twig"], true);
// line 27
echo "
";
// line 28
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["exchangeRatesForm"]) || array_key_exists("exchangeRatesForm", $context) ? $context["exchangeRatesForm"] : (function () { throw new RuntimeError('Variable "exchangeRatesForm" does not exist.', 28, $this->source); })()), 'form_start', ["action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_currencies_refresh_exchange_rates")]);
echo "
<div class=\"card\">
<h3 class=\"card-header\">
";
// line 31
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Exchange rate", [], "Admin.International.Feature"), "html", null, true);
echo "
</h3>
<div class=\"card-body\">
<div class=\"form-wrapper\">
<div class=\"form-group row\">
<label class=\"form-control-label\">
";
// line 37
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Live exchange rates", [], "Admin.International.Feature"), "html", null, true);
echo "
</label>
<div class=\"col-sm\">
<small class=\"form-text\">
";
// line 41
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Check the [a]developer documentation[/a] for setup instructions.", ["[a]" => "<a href=\"https://devdocs.prestashop.com/1.7/faq/pricing/#refresh-exchange-rates\" target=\"_blank\">", "[/a]" => "</a>"], "Admin.International.Notification");
echo "
</small>
</div>
</div>
<div class=\"form-group row\">
<label for=\"\" class=\"form-control-label\">
";
// line 47
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Update exchange rates", [], "Admin.International.Feature"), "html", null, true);
echo "
</label>
<div class=\"col-sm\">
<button class=\"btn btn-primary\" id=\"update-exchange-rates-button\">
";
// line 51
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Update", [], "Admin.Actions"), "html", null, true);
echo "
</button>
</div>
</div>
";
// line 55
$this->displayBlock('currency_settings', $context, $blocks);
// line 58
echo " </div>
</div>
</div>
";
// line 61
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["exchangeRatesForm"]) || array_key_exists("exchangeRatesForm", $context) ? $context["exchangeRatesForm"] : (function () { throw new RuntimeError('Variable "exchangeRatesForm" does not exist.', 61, $this->source); })()), 'form_end');
echo "
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 55
public function block_currency_settings($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "currency_settings"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "currency_settings"));
// line 56
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["exchangeRatesForm"]) || array_key_exists("exchangeRatesForm", $context) ? $context["exchangeRatesForm"] : (function () { throw new RuntimeError('Variable "exchangeRatesForm" does not exist.', 56, $this->source); })()), 'rest');
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@PrestaShop/Admin/Improve/International/Currency/Blocks/exchange_rates.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 126 => 56, 116 => 55, 104 => 61, 99 => 58, 97 => 55, 90 => 51, 83 => 47, 74 => 41, 67 => 37, 58 => 31, 52 => 28, 49 => 27, 47 => 26, 44 => 25,);
}
public function getSourceContext()
{
return new Source("{#**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*#}
{% form_theme exchangeRatesForm '@PrestaShop/Admin/TwigTemplateForm/prestashop_ui_kit.html.twig' %}
{{ form_start(exchangeRatesForm, {'action': path('admin_currencies_refresh_exchange_rates') }) }}
<div class=\"card\">
<h3 class=\"card-header\">
{{ 'Exchange rate'|trans({}, 'Admin.International.Feature') }}
</h3>
<div class=\"card-body\">
<div class=\"form-wrapper\">
<div class=\"form-group row\">
<label class=\"form-control-label\">
{{ 'Live exchange rates'|trans({}, 'Admin.International.Feature') }}
</label>
<div class=\"col-sm\">
<small class=\"form-text\">
{{ 'Check the [a]developer documentation[/a] for setup instructions.'|trans({'[a]': '<a href=\"https://devdocs.prestashop.com/1.7/faq/pricing/#refresh-exchange-rates\" target=\"_blank\">', '[/a]': '</a>'}, 'Admin.International.Notification')|raw }}
</small>
</div>
</div>
<div class=\"form-group row\">
<label for=\"\" class=\"form-control-label\">
{{ 'Update exchange rates'|trans({}, 'Admin.International.Feature') }}
</label>
<div class=\"col-sm\">
<button class=\"btn btn-primary\" id=\"update-exchange-rates-button\">
{{ 'Update'|trans({}, 'Admin.Actions') }}
</button>
</div>
</div>
{% block currency_settings %}
{{ form_rest(exchangeRatesForm) }}
{% endblock %}
</div>
</div>
</div>
{{ form_end(exchangeRatesForm) }}
", "@PrestaShop/Admin/Improve/International/Currency/Blocks/exchange_rates.html.twig", "/var/www/vinorea/src/PrestaShopBundle/Resources/views/Admin/Improve/International/Currency/Blocks/exchange_rates.html.twig");
}
}